package com.hrbxlh.virtualization.controller;

import com.hrbxlh.virtualization.constant.GlobalConstant;
import com.hrbxlh.virtualization.result.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cheer
 */
@RestController
@RequestMapping("/common")
public class CommonController {

    /**
     * 查询项目地址
     */
    @RequestMapping(value = "/project", method = RequestMethod.GET)
    public Result getProjectUrl() {
        return Result.success(GlobalConstant.PROJECT_URL);
    }
}
